# -*- coding: utf-8 -*-

from odoo import fields, api
from odoo_contrib import models as contrib_models


class Department(contrib_models.SchemaModel):
    _name = 'exhibition.department'
    _description = 'Department for exhibition APP'

    name = fields.Char(string='部门名称')
    enabled = fields.Boolean(string='是否启用', default=True)

    members = fields.One2many(
        comodel_name='exhibition.users',
        inverse_name='department',
        string='部门成员',
    )
